<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ECSHOP 管理中心 - 客户资料列表 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<%--<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>--%>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>

	<!-- bootstrap -->
	<link href="/css/bootstrap/bootstrap.css" rel="stylesheet"/>
	<link href="/css/bootstrap/bootstrap-responsive.css" rel="stylesheet"/>
	<link href="/css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet"/>

	<!-- libraries -->
	<link href="/css/lib/jquery-ui-1.10.2.custom.css" rel="stylesheet" type="text/css"/>
	<link href="/css/lib/font-awesome.css" type="text/css" rel="stylesheet"/>

	<!-- global styles -->
	<link rel="stylesheet" type="text/css" href="/css/layout.css"/>
	<link rel="stylesheet" type="text/css" href="/css/elements.css"/>
	<link rel="stylesheet" type="text/css" href="/css/icons.css"/>

	<!-- this page specific styles -->
	<link rel="stylesheet" href="/css/compiled/index.css" type="text/css" media="screen"/>

	<!-- open sans font -->
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800'
		  rel='stylesheet' type='text/css'/>

	<!-- lato font -->
	<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900,300italic,400italic,700italic,900italic'
		  rel='stylesheet' type='text/css'/>

	<!--[if lt IE 9]>
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

</head>
<body>
<!-- 客户资料列表 -->
<form method="post" action="" name="listForm" onsubmit="">
    <div class="list-div" id="listDiv">
		<div class="table-wrapper orders-table section">
			<div class="row-fluid head">
				<div class="span12">
					<h4>客户资料列表</h4>
				</div>
			</div>
			<div class="row-fluid filter-block">
				<form action="" name="searchForm">
					<div class="pull-right">
						<div class="btn-group pull-right">
							<button  class="glow middle large">搜索</button>
						</div>
						<input type="text" class="search order-search" placeholder="输入关键字搜索" />
					</div>
				</form>
				<span class="btn-flat success new-product"><a href="${path }/customer_viewEdit.action">添加新客户资料</a></span>
			</div>
			<div class="row-fluid">
				<table class="table table-hover">
					<thead>
					<tr>
						<th class="span2" style="text-align: center">
							编号
						</th>
						<th class="span3" style="text-align: center">
							客户名称
						</th>
						<th class="span3" style="text-align: center">
							<span class="line"></span>
							性别
						</th>
						<th class="span3" style="text-align: center">
							<span class="line"></span>
							生日
						</th>
						<th class="span3" style="text-align: center">
							<span class="line"></span>
							客户电话
						</th>
						<th class="span3" style="text-align: center">
							<span class="line"></span>
							Email
						</th>
						<th class="span3" style="text-align: center">
							<span class="line"></span>
							状态
						</th>
						<th class="span3" style="text-align: center">
							<span class="line"></span>
							操作
						</th>
					</tr>
					</thead>
					<tbody>
					<!-- row -->
					<!-- 先判断，再迭代 -->
					<s:if test="#request.listCustomer != null">
						<s:iterator var="customer" value="#request.listCustomer">
							<tr>
								<td style="text-align: center"><s:property value="#customer.id"/></td>
								<td style="text-align: center"><s:property value="#customer.name"/></td>
								<td style="text-align: center">
									<s:if test="#customer.sex">男</s:if>
									<s:else>女</s:else>
								</td>
								<td style="text-align: center">
									<s:date name="#customer.birth" format="yyyy-MM-dd" />
								</td>
								<td style="text-align: center"><s:property value="#customer.tel"/></td>
								<td style="text-align: center"><s:property value="#customer.email"/></td>
								<td style="text-align: center">
									<s:if test="#customer.status==0">
										<span class="label">作废</span>
									</s:if>
									<s:else>
										<span class="label label-success">正常</span>
									</s:else>

								</td>

								<td style="text-align: center">
									<a href="#" target="_blank" title="查看"><img src="./Images/icon_view.gif" width="16" height="16" border="0" /></a>
									<a href='${path }/customer_viewEdit.action?customer.id=<s:property value="#customer.id"/>' title="编辑"><img src="./Images/icon_edit.gif" width="16" height="16" border="0" /></a>

									<s:a href="customer_updateStatus.action?customer.id=%{#customer.id}&customer.status=0" title="作废">
										<img src="./Images/icon_trash.gif" width="16" height="16" border="0" />
									</s:a>
									<s:a href="traceHistory_viewEdit.action?customer.id=%{#customer.id}">跟进</s:a>
									<s:a href="transferHistory_viewEdit.action?customer.id=%{#customer.id}">移交</s:a>
								</td>
							</tr>
						</s:iterator>
					</s:if>
					<s:else>
						<tr>
							<td colspan="8">还没有数据录入，请先录入！</td>
						</tr>
					</s:else>
				</table>
			</div>
		</div>
		<!-- end orders table -->
   		 <!-- 分页开始
        <table id="page-table" cellspacing="0">
            <tr>
                <td width="80%">&nbsp;</td>
                <td align="center" nowrap="true">
                    <{$showPage}>
                </td>
            </tr>
        </table>
        -->
    <!-- 分页结束 -->
    </div>
</form>

<div style="text-align: center;">
共执行 7 个查询，用时 0.028849 秒，Gzip 已禁用，内存占用 3.219 MB<br />
版权所有 &copy; 2018-2019 yjxsy1996，并保留所有权利。</div>
</body>
</html>